From 43e7c04fb6eeedb28183935903400f99a0d10c2e Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Tue, 10 Jul 2018 09:53:07 -0600 Subject: [PATCH] fix irrelevant booboo in 23cb08f17. This only mattered if NEW_STRINGS wasn't defined, and it always is, except if running cppcheck. --- gdb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb.cc b/gdb.cc index e8c06eb64..16d330b22 100644 --- a/gdb.cc +++ b/gdb.cc @@ -1623,7 +1623,7 @@ write_waypoint_cb(const Waypoint* refpt) // but, but, casting away the const here is wrong... (const_cast(refpt))->shortname = refpt->shortname.trimmed(); #else - rtrim(const_cast(refpt))->shortname); + rtrim((const_cast(refpt))->shortname); #endif Waypoint* test = gdb_find_wayptq(&wayptq_out, refpt, 1); -- 2.30.2